﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Relay.UI.Controls.Docking.Primitives {
    /// <summary>
    /// An items control for selecting windows in a DockWindowGroup.
    /// </summary>
    public class DockWindowList : Panel {
        #region Constructor
        /// <summary>
        /// Initializes the <see cref="DockWindowList"/> class.
        /// </summary>
        static DockWindowList() {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DockWindowList),
                new FrameworkPropertyMetadata(typeof(DockWindowList)));
        }
        #endregion

        #region Properties
        private DockWindowGroup ItemsParent {
            get { return ItemsControl.ItemsControlFromItemContainer(this) as DockWindowGroup; }
        }
        #endregion
    }
}
